Return a full reference when parsing triggers
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 26 Mar 2020 17:11:25 +0000 (17:11 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 27 Mar 2020 13:57:19 +0000 (13:57 +0000)
commit96ccb25f97ab2fd2ec08d11dfe5d281764a732f2
tree432f076b0feb933781fc67995861d6576b70cb59
parentc3c06e60dcc0813fd5007e1e2ab1b99dfafa4298
Return a full reference when parsing triggers

We're not returning a full reference for GtkNeverTrigger, but we are
returning full references for mnemonic and keyval triggers; this means
we're either going to leak mnemonic and keyval triggers if we consider
this function a "transfer none" one, or we are going to trigger an
assertion failure when finalizing a never trigger, if we consider this
function a "transfer full" one.

Let's be consistent, and always return a full reference to the caller.
gtk/gtkshortcuttrigger.c